import PublishManageTable from "../../../components/publish-manage/index.js";
import usePublish from "../../../components/publish-manage/usePublish";
import { Button } from "antd";

export default function SunSet() {
  // 3 已下线
  const { dataSource, handleDelete } = usePublish(3);
  return (
    <div>
      <PublishManageTable
        dataSource={dataSource}
        button={(id) => (
          <Button type="danger" onClick={() => handleDelete(id)}>
            删除
          </Button>
        )}
      ></PublishManageTable>
    </div>
  );
}
